﻿using System;
using System.Collections.Generic;

namespace com.igetui.api.openservice.payload
{
	// Token: 0x0200003E RID: 62
	public class DictionaryAlertMsg : AlertMsg
	{
		// Token: 0x17000225 RID: 549
		// (get) Token: 0x060004F4 RID: 1268 RVA: 0x0000BF42 File Offset: 0x0000A142
		// (set) Token: 0x060004F5 RID: 1269 RVA: 0x0000BF4A File Offset: 0x0000A14A
		public string Title
		{
			get
			{
				return this.title;
			}
			set
			{
				this.title = value;
			}
		}

		// Token: 0x17000226 RID: 550
		// (get) Token: 0x060004F6 RID: 1270 RVA: 0x0000BF53 File Offset: 0x0000A153
		// (set) Token: 0x060004F7 RID: 1271 RVA: 0x0000BF5B File Offset: 0x0000A15B
		public string Body
		{
			get
			{
				return this.body;
			}
			set
			{
				this.body = value;
			}
		}

		// Token: 0x17000227 RID: 551
		// (get) Token: 0x060004F8 RID: 1272 RVA: 0x0000BF64 File Offset: 0x0000A164
		// (set) Token: 0x060004F9 RID: 1273 RVA: 0x0000BF6C File Offset: 0x0000A16C
		public string TitleLocKey
		{
			get
			{
				return this.titleLocKey;
			}
			set
			{
				this.titleLocKey = value;
			}
		}

		// Token: 0x17000228 RID: 552
		// (get) Token: 0x060004FA RID: 1274 RVA: 0x0000BF75 File Offset: 0x0000A175
		// (set) Token: 0x060004FB RID: 1275 RVA: 0x0000BF7D File Offset: 0x0000A17D
		public List<string> TitleLocArgs
		{
			get
			{
				return this.titleLocArgs;
			}
			set
			{
				this.titleLocArgs = value;
			}
		}

		// Token: 0x060004FC RID: 1276 RVA: 0x0000BF86 File Offset: 0x0000A186
		public void addTitleLocArg(string titleLocArg)
		{
			if (titleLocArg != null && titleLocArg.Length > 0)
			{
				this.titleLocArgs.Add(titleLocArg);
			}
		}

		// Token: 0x17000229 RID: 553
		// (get) Token: 0x060004FD RID: 1277 RVA: 0x0000BFA0 File Offset: 0x0000A1A0
		// (set) Token: 0x060004FE RID: 1278 RVA: 0x0000BFA8 File Offset: 0x0000A1A8
		public string ActionLocKey
		{
			get
			{
				return this.actionLocKey;
			}
			set
			{
				this.actionLocKey = value;
			}
		}

		// Token: 0x1700022A RID: 554
		// (get) Token: 0x060004FF RID: 1279 RVA: 0x0000BFB1 File Offset: 0x0000A1B1
		// (set) Token: 0x06000500 RID: 1280 RVA: 0x0000BFB9 File Offset: 0x0000A1B9
		public string LocKey
		{
			get
			{
				return this.locKey;
			}
			set
			{
				this.locKey = value;
			}
		}

		// Token: 0x1700022B RID: 555
		// (get) Token: 0x06000501 RID: 1281 RVA: 0x0000BFC2 File Offset: 0x0000A1C2
		// (set) Token: 0x06000502 RID: 1282 RVA: 0x0000BFCA File Offset: 0x0000A1CA
		public List<string> LocArgs
		{
			get
			{
				return this.locArgs;
			}
			set
			{
				this.locArgs = value;
			}
		}

		// Token: 0x06000503 RID: 1283 RVA: 0x0000BFD3 File Offset: 0x0000A1D3
		public void addLocArg(string locArg)
		{
			if (locArg != null && locArg.Length > 0)
			{
				this.locArgs.Add(locArg);
			}
		}

		// Token: 0x1700022C RID: 556
		// (get) Token: 0x06000504 RID: 1284 RVA: 0x0000BFED File Offset: 0x0000A1ED
		// (set) Token: 0x06000505 RID: 1285 RVA: 0x0000BFF5 File Offset: 0x0000A1F5
		public string LaunchImage
		{
			get
			{
				return this.launchImage;
			}
			set
			{
				this.launchImage = value;
			}
		}

		// Token: 0x06000506 RID: 1286 RVA: 0x0000C000 File Offset: 0x0000A200
		public object getAlertMsg()
		{
			Dictionary<string, object> dictionary = new Dictionary<string, object>();
			if (DictionaryAlertMsg.isNotEmpty(this.title))
			{
				dictionary.Add("title", this.title);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.body))
			{
				dictionary.Add("body", this.body);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.titleLocKey))
			{
				dictionary.Add("title-loc-key", this.titleLocKey);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.titleLocArgs))
			{
				dictionary.Add("title-loc-args", this.titleLocArgs);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.actionLocKey))
			{
				dictionary.Add("action-loc-key", this.actionLocKey);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.locKey))
			{
				dictionary.Add("loc-key", this.locKey);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.locArgs))
			{
				dictionary.Add("loc-args", this.locArgs);
			}
			if (DictionaryAlertMsg.isNotEmpty(this.launchImage))
			{
				dictionary.Add("launch-image", this.launchImage);
			}
			return dictionary;
		}

		// Token: 0x06000507 RID: 1287 RVA: 0x0000C104 File Offset: 0x0000A304
		private static bool isNotEmpty(object item)
		{
			return item != null && ((item is string && (string)item != "") || (item is Array && ((Array)item).Length > 0) || (item is List<string> && ((List<string>)item).Count > 0) || (item is Dictionary<string, object> && ((Dictionary<string, object>)item).Count > 0));
		}

		// Token: 0x040002D9 RID: 729
		private string title;

		// Token: 0x040002DA RID: 730
		private string body;

		// Token: 0x040002DB RID: 731
		private string titleLocKey;

		// Token: 0x040002DC RID: 732
		private List<string> titleLocArgs = new List<string>();

		// Token: 0x040002DD RID: 733
		private string actionLocKey;

		// Token: 0x040002DE RID: 734
		private string locKey;

		// Token: 0x040002DF RID: 735
		private List<string> locArgs = new List<string>();

		// Token: 0x040002E0 RID: 736
		private string launchImage;
	}
}
